from django.db import models

from apis.models.area import Area


class School(models.Model):
    LEVEL_CHOICES = [
        ('Hi', 'High'),
        ('Mi', 'Middle'),
        ('Lo', 'Low')
    ]
    id = models.BigAutoField(primary_key=True)
    name = models.CharField(max_length=30)
    desc = models.TextField(help_text="this is desc help_text", verbose_name="this is desc verhose_name")
    status = models.BooleanField(default=True)
    level = models.CharField(max_length=2, choices=LEVEL_CHOICES, default='Hi')
    mark1 = models.TextField(help_text="数据库备注/表单备注", verbose_name="字段备注", default='')
    num1 = models.CharField(unique=True, max_length=32)
    num2 = models.CharField(max_length=32, default='')
    areas = models.ManyToManyField(Area)
